#ifndef GLOBALCHARTOPTIONS_H
#define GLOBALCHARTOPTIONS_H

#include <QDialog>
#include "ui_GlobalChartOptions.h"
#include <boost/noncopyable.hpp>
#include "../../charts/common/GlobalSettings.h"
#include <QColorDialog>

namespace LightChart
{
    class GlobalChartOptions : public QDialog, private Ui_GlobalChartOptions, public boost::noncopyable
    {
	Q_OBJECT
    public:
    GlobalChartOptions(QWidget* parent = 0);
    //static GlobalChartOptions& get_instance(QWidget* parent) { static GlobalChartOptions instance(parent); return instance; }
    private slots:
	void onOkClicked();
	void onBgColorButtonClicked();
    private:
	void setupConnections();
    //GlobalChartOptions(QWidget* parent = 0);
	GlobalChartSettings& settings;
	QColor tmpColor;
    };
}

#endif // GLOBALCHARTOPTIONS_H
